using System;
using System.Collections.Generic;
using System.Text;
using Excel = Microsoft.Office.Interop.Excel;
using PowerPoint = Microsoft.Office.Interop.PowerPoint;

namespace LogAnalyzerIIS.Objects
{
	public class PowerPointExportProperties
	{
		/// <summary>
		/// PowerPoint presentation associated to this object
		/// </summary>
		public PowerPoint.Presentation reportPres;

		/// <summary>
		/// Excel worksheet associated to this object
		/// </summary>
		public Excel.Worksheet excelWorksheet;

		/// <summary>
		/// Current PowerPoint slide where exporting is being performed
		/// </summary>
		public PowerPoint.Shape shape = null;

		/// <summary>
		/// Current PowerPoint shape where exporting is being performed
		/// </summary>
		public PowerPoint.Slide slide = null;

		/// <summary>
		/// Excel worksheet row number to read data from for each iteration
		/// </summary>
		public int excelStartRowNumber = 1;

		/// <summary>
		/// Excel worksheet row number to read data to for each iteration 
		/// </summary>
		public int excelEndRowNumber = 1;

		/// <summary>
		/// number of row in the PowerPoint table where data is being carried 
		/// </summary>
		public int powerPointRowNumber = 1;

		/// <summary>
		/// number of rows in the PowerPoint table (set 1 for header) 
		/// </summary>
		public int varMaxRows = 1;

		/// <summary>
		/// width of the section being exported 
		/// </summary>
		public int varMaxCols = 1;

		/// <summary>
		/// number of slide to paste 
		/// </summary>
		public int SlideIndex = 1;

		// max number of rows in any PowerPoint table
		public int MaxPowerPointTableRows = 20;

		/// <summary>
		/// Initializez PowerPoint export properties class
		/// </summary>
		/// <param name="presentation">PowerPoint presentation</param>
		/// <param name="worksheet">Excel worksheet</param>
		public PowerPointExportProperties(PowerPoint.Presentation presentation, Excel.Worksheet worksheet)
		{
			reportPres = presentation;
			excelWorksheet = worksheet;
		}
	}
}
